package model.gamemenu;

import java.awt.DisplayMode;

import view.ScreenMode;

public class ScreenMenu extends GameMenu {

	/** Constructs a new screen menu */
	public ScreenMenu () {
	}
	
	/** Adds the list of items to the menu */
	public void setDisplayModes (DisplayMode[] displayModes) {
		this.itemList = new ItemList();
		for (int i = 0; i < displayModes.length; i++) {
			if (displayModes[i].getWidth() >= 800) {
				ScreenMode mode = new ScreenMode(displayModes[i]);
				this.itemList.add(new MenuItem(mode));
			}
		}
	}
}